import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const faceTime: AppRouteRecordRaw = {
  path: '/faceTime',
  name: 'faceTime',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '会话中心',
    requiresAuth: true,
    icon: 'icon-lark-color',
    order: 9,
  },
  children: [
    
    {
      path: 'faceTimeOption',
      name: 'faceTimeOption',
      component: () => import('@/views/faceTime/faceTime.vue'),
      meta: {
        locale: '对话操作',
        requiresAuth: true,
        icon: 'icon-lark-color',
        roles: ['*'],
      },
    },
    {
      path: 'room',
      name: 'room',
      component: () => import('@/views/faceTime/component/room.vue'),
      meta: {
        locale: '房间页面',
        requiresAuth: true,
        icon: 'icon-lark-color',
        roles: ['*'],
      },
    }, {
      path: 'enter',
      name: 'enter',
      component: () => import('@/views/faceTime/enter/index.vue'),
      meta: {
        locale: 'enter',
        requiresAuth: true,
        icon: 'icon-lark-color',
        roles: ['*'],
      },
    }, {
      path: 'join',
      name: 'join',
      component: () => import('@/views/faceTime/join/index.vue'),
      meta: {
        locale: 'join',
        requiresAuth: true,
        icon: 'icon-lark-color',
        roles: ['*'],
      },
    }, {
      path: 'media',
      name: 'media',
      component: () => import('@/views/faceTime/media/index.vue'),
      meta: {
        locale: 'media',
        requiresAuth: true,
        icon: 'icon-lark-color',
        roles: ['*'],
      },
    }
  ],
};

export default faceTime;
